{% extends "base/base.html" %}

{% block title %}
    表单
{% endblock %}


{% block style %}
    .row{
        margin-top: 50px;
    }

    *{
        background-color:lightblue;
    }
{% endblock %}


{% block main %}
    <div class="row">
        <div class="col-md-6 col-md-offset-3">
            <h2 style="text-align: center">修改信息</h2>

            <form action="" method="post">
                {% csrf_token %}
                <div class="form-group">
                    {{ form.username.label_tag }}
                    {{ form.username }}
                    {% if form.username.errors %}
                        {% for error in form.username.errors %}
                            <div class="alert alert-danger" role="alert">{{ error }}</div>
                        {% endfor %}
                    {% endif %}
                </div>
                <div class="form-group">
                    {{ form.header.label_tag }}
                    {{ form.header }}
                    {% if form.header.errors %}
                        {% for error in form.header.errors %}
                            <div class="alert alert-danger" role="alert">{{ error }}</div>
                        {% endfor %}
                    {% endif %}
                </div>

                <div class="form-group">
                    <div class="col-md-6 col-md-offset-3">
                        <button type="submit" class="btn btn-danger">确定修改</button>

                    </div>

                </div>
            </form>
        </div>

    </div>



{% endblock %}
